﻿<script src="code.js"></script>

<input type="button" id="theButton" value="Say hello">
<br/>
<br/>
<input type="text" id="boxA">
<input type="text" id="boxB">

<div id="answer"></div>

<script>
    document.getElementById('theButton').onclick = function () {
        print();
        sayHello();
    };
    function print() {
        /*var x = document.getElementById('boxA').value;
        var y = document.getElementById('boxB').value;
        var temp = addString(x, y);
        document.getElementById('answer').innerHTML = temp;*/
        getWorkout(1, test());
    }

    function test(data) {
        document.getElementById('answer').innerHTML = data;
    }
</script>